import request from '@/utils/request'

// 查询上会投票决列表
export function listOaMtVote(query) {
  return request({
    url: '/vote/oaMtVote/list',
    method: 'get',
    params: query
  })
}

// 查询上会投票决详细
export function getOaMtVote(id) {
  return request({
    url: '/vote/oaMtVote/' + id,
    method: 'get'
  })
}

// 查询上会投票决详细
export function getOaMtVoteByMeeting(meetingId) {
  return request({
    url: '/vote/oaMtVote/getByMeeting/' + meetingId,
    method: 'get'
  })
}

// 保存上会投票决
export function saveOaMtVote(data) {
  return request({
    url: '/vote/oaMtVote/save',
    method: 'post',
    data: data
  })
}

// 删除上会投票决
export function delOaMtVote(id) {
  return request({
    url: '/vote/oaMtVote/' + id,
    method: 'delete'
  })
}

// 导出上会投票决
export function exportOaMtVote(query) {
  return request({
    url: '/vote/oaMtVote/export',
    method: 'get',
    params: query
  })
}
